[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Field_Rules


Purpose   Defines the input characteristics of a field.

Decln.    Field_Rules(ID:byte;Rules:word;AChar,DChar:IOCharSet);

Remarks   ID is the field ID number.
          Rules is a word that indicates the display characteristics of the
          field. There are 5 different field Rules:
               ALLOWNULL
               SUPPRESSZERO
               RIGHTJUSTIFY
               ERASEDEFAULT
               JUMPIFFULL
          The desired attributes are summed to give the combined field
          Rules.
          AChar is a set of allowable characters that the user will be able
          to input. Set it to [#0] for the default characters.
          DChar is a set of characters that the user will not be able to
          input. Set it to No_Char (defined as [#0]) for the default
          characters.

Example

BEGIN
    FIELD_RULES(2,ALLOWNULL+SUPPRESSZERO,NO_CHAR,['*','?']);
    FIELD_RULES(3,RIGHTJUSTIFY,NO_CHAR,NO_CHAR);
END;

See Also: Set_Default_Rules
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson